'use strict';
// app/router/onlineCenter.js
module.exports = app => {
  const { router, controller } = app;
  const handleUrl = app.middleware.handleUrl();
  // 软件下载
  router.get('/cms/onlineCenter/download', handleUrl, controller.onlineCenter.download.index);
  // 网上开户
  router.get('/cms/onlineCenter/account', handleUrl, controller.onlineCenter.account.index);
  // 网上开户
  router.get('/cms/onlineCenter/suggestion', handleUrl, controller.onlineCenter.account.index);
  // 公司公告
  router.get('/cms/onlineCenter/announcement', handleUrl, controller.base.list.index);
  router.get('/cms/onlineCenter/announcement/detail', handleUrl, controller.base.detail.index);
  // 银期转账
  router.get('/cms/onlineCenter/silvertransfer', handleUrl, controller.base.list.index);
  router.get('/cms/onlineCenter/silvertransfer/detail', handleUrl, controller.base.detail.index);
  // 常见问题
  router.get('/cms/onlineCenter/qa', handleUrl, controller.base.list.index);
  // 常见问题 银期相关
  router.get('/cms/onlineCenter/qa/silver', handleUrl, controller.base.list.index);
  router.get('/cms/onlineCenter/qa/silver/detail', handleUrl, controller.base.detail.index);
  // 常见问题 其他相关
  router.get('/cms/onlineCenter/qa/others', handleUrl, controller.base.list.index);
  router.get('/cms/onlineCenter/qa/others/detail', handleUrl, controller.base.detail.index);
  // 常见问题 软件相关
  router.get('/cms/onlineCenter/qa/app', handleUrl, controller.base.list.index);
  router.get('/cms/onlineCenter/qa/app/detail', handleUrl, controller.base.detail.index);
  // 常见问题 密码相关
  router.get('/cms/onlineCenter/qa/pwd', handleUrl, controller.base.list.index);
  router.get('/cms/onlineCenter/qa/pwd/detail', handleUrl, controller.base.detail.index);
  // 常见问题 开户相关
  router.get('/cms/onlineCenter/qa/account', handleUrl, controller.base.list.index);
  router.get('/cms/onlineCenter/qa/account/detail', handleUrl, controller.base.detail.index);
  // 常见问题 结算相关
  router.get('/cms/onlineCenter/qa/settlement', handleUrl, controller.base.list.index);
  router.get('/cms/onlineCenter/qa/settlement/detail', handleUrl, controller.base.detail.index);
  // 常见问题 交易相关
  router.get('/cms/onlineCenter/qa/transaction', handleUrl, controller.base.list.index);
  router.get('/cms/onlineCenter/qa/transaction/detail', handleUrl, controller.base.detail.index);

  router.get('/cms/onlineCenter/pcAccount', controller.onlineCenter.account.pcAccount);
  router.get('/cms/onlineCenter/mobileAccount', controller.onlineCenter.account.mobileAccount);
};
